package simple.cashflow;

import java.math.BigDecimal;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import simple.cashflow.model.Golongan;
import simple.cashflow.service.GolonganService;

public class Main {
	
	public static void main(String[] args) {
		
		String file = "classpath*:/simple/**/applicationContext.xml";
		ApplicationContext ctx = new ClassPathXmlApplicationContext(file);
		Golongan gol = new Golongan("GOL01", new BigDecimal(500000), new BigDecimal(300000), new BigDecimal(30000),
				new BigDecimal(1000000), new BigDecimal(50000), new BigDecimal(50000));
		GolonganService golser = (GolonganService) ctx.getBean("golonganService");
		golser.simpanGolongan(gol);
		
	}
	
}
